package protobuf {
	import com.netease.protobuf.*;
	use namespace com.netease.protobuf.used_by_generated_code;
	import com.netease.protobuf.fieldDescriptors.*;
	import flash.utils.Endian;
	import flash.utils.IDataInput;
	import flash.utils.IDataOutput;
	import flash.utils.IExternalizable;
	import flash.errors.IOError;
	// @@protoc_insertion_point(imports)

	// @@protoc_insertion_point(class_metadata)
	public dynamic final class BLIND_STRUCT_ITEM extends com.netease.protobuf.Message {
		/**
		 *  @private
		 */
		public static const MINUTE:FieldDescriptor$TYPE_UINT32 = new FieldDescriptor$TYPE_UINT32("protobuf.BLIND_STRUCT_ITEM.minute", "minute", (1 << 3) | com.netease.protobuf.WireType.VARINT);

		public var minute:uint;

		/**
		 *  @private
		 */
		public static const MIN_BLINDS:FieldDescriptor$TYPE_UINT32 = new FieldDescriptor$TYPE_UINT32("protobuf.BLIND_STRUCT_ITEM.min_blinds", "minBlinds", (2 << 3) | com.netease.protobuf.WireType.VARINT);

		public var minBlinds:uint;

		/**
		 *  @private
		 */
		public static const MAX_BLINDS:FieldDescriptor$TYPE_UINT32 = new FieldDescriptor$TYPE_UINT32("protobuf.BLIND_STRUCT_ITEM.max_blinds", "maxBlinds", (3 << 3) | com.netease.protobuf.WireType.VARINT);

		public var maxBlinds:uint;

		/**
		 *  @private
		 */
		public static const ANTE:FieldDescriptor$TYPE_UINT32 = new FieldDescriptor$TYPE_UINT32("protobuf.BLIND_STRUCT_ITEM.ante", "ante", (4 << 3) | com.netease.protobuf.WireType.VARINT);

		public var ante:uint;

		/**
		 *  @private
		 */
		override used_by_generated_code final function writeToBuffer(output:com.netease.protobuf.WritingBuffer):void {
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 1);
			com.netease.protobuf.WriteUtils.write$TYPE_UINT32(output, this.minute);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 2);
			com.netease.protobuf.WriteUtils.write$TYPE_UINT32(output, this.minBlinds);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 3);
			com.netease.protobuf.WriteUtils.write$TYPE_UINT32(output, this.maxBlinds);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 4);
			com.netease.protobuf.WriteUtils.write$TYPE_UINT32(output, this.ante);
			for (var fieldKey:* in this) {
				super.writeUnknown(output, fieldKey);
			}
		}

		/**
		 *  @private
		 */
		override used_by_generated_code final function readFromSlice(input:flash.utils.IDataInput, bytesAfterSlice:uint):void {
			var minute$count:uint = 0;
			var min_blinds$count:uint = 0;
			var max_blinds$count:uint = 0;
			var ante$count:uint = 0;
			while (input.bytesAvailable > bytesAfterSlice) {
				var tag:uint = com.netease.protobuf.ReadUtils.read$TYPE_UINT32(input);
				switch (tag >> 3) {
				case 1:
					if (minute$count != 0) {
						throw new flash.errors.IOError('Bad data format: BLIND_STRUCT_ITEM.minute cannot be set twice.');
					}
					++minute$count;
					this.minute = com.netease.protobuf.ReadUtils.read$TYPE_UINT32(input);
					break;
				case 2:
					if (min_blinds$count != 0) {
						throw new flash.errors.IOError('Bad data format: BLIND_STRUCT_ITEM.minBlinds cannot be set twice.');
					}
					++min_blinds$count;
					this.minBlinds = com.netease.protobuf.ReadUtils.read$TYPE_UINT32(input);
					break;
				case 3:
					if (max_blinds$count != 0) {
						throw new flash.errors.IOError('Bad data format: BLIND_STRUCT_ITEM.maxBlinds cannot be set twice.');
					}
					++max_blinds$count;
					this.maxBlinds = com.netease.protobuf.ReadUtils.read$TYPE_UINT32(input);
					break;
				case 4:
					if (ante$count != 0) {
						throw new flash.errors.IOError('Bad data format: BLIND_STRUCT_ITEM.ante cannot be set twice.');
					}
					++ante$count;
					this.ante = com.netease.protobuf.ReadUtils.read$TYPE_UINT32(input);
					break;
				default:
					super.readUnknown(input, tag);
					break;
				}
			}
		}

	}
}
